package com.ruoyi.product.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户对象 user_info
 *
 * @author 林道敬
 * @date 2025-01-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_info")
public class UserInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户名称 */
    private String loginName;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickName;

    /** 用户密码 */
    @Excel(name = "用户密码")
    private String passwd;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phoneNum;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 头像 */
    @Excel(name = "头像")
    private String headImg;

    /** 用户级别 */
    @Excel(name = "用户级别")
    private String userLevel;

    /** 是否好友(0 - 非好友 1 - 好友) */
    @Excel(name = "是否好友(0 - 非好友 1 - 好友)")
    private Long isFriend;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setLoginName(String loginName)
    {
        this.loginName = loginName;
    }

    public String getLoginName()
    {
        return loginName;
    }
    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getNickName()
    {
        return nickName;
    }
    public void setPasswd(String passwd)
    {
        this.passwd = passwd;
    }

    public String getPasswd()
    {
        return passwd;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setPhoneNum(String phoneNum)
    {
        this.phoneNum = phoneNum;
    }

    public String getPhoneNum()
    {
        return phoneNum;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }
    public void setHeadImg(String headImg)
    {
        this.headImg = headImg;
    }

    public String getHeadImg()
    {
        return headImg;
    }
    public void setUserLevel(String userLevel)
    {
        this.userLevel = userLevel;
    }

    public String getUserLevel()
    {
        return userLevel;
    }
    public void setIsFriend(Long isFriend)
    {
        this.isFriend = isFriend;
    }

    public Long getIsFriend()
    {
        return isFriend;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("loginName", getLoginName())
            .append("nickName", getNickName())
            .append("passwd", getPasswd())
            .append("name", getName())
            .append("phoneNum", getPhoneNum())
            .append("email", getEmail())
            .append("headImg", getHeadImg())
            .append("userLevel", getUserLevel())
            .append("isFriend", getIsFriend())
            .toString();
    }
}
